n = int(input("请输入n:"))
sum = 0
for i in range(n+1):
    sum += i
print(sum)